/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cz.muni.fi.veles.demo;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.AjaxBehaviorEvent;

/**
 *
 * @author Iref
 */
@ManagedBean(name="place")
@SessionScoped
public class PlaceBean implements Serializable{

    private Double latitude = 34.6;
    private Double longitude = -113.4;
    private String title = "";

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public String getTitle() {
        return title;
    }    
    
    public void updateTitle(AjaxBehaviorEvent event){
        this.title = "Title was updated";
    }

}
